﻿@model KidChoreApp.DataModels.Chore
<h2>Edit A Chore</h2>
<form method="post">
    Chore Name:<input type="text" name="name" value="@Model.Name" class="form-control" />
    Chore Room:<input type="text" name="room" value="@Model.Room" class="form-control" />
    Is It Finished?
    <select name="isdone" class="form-control">
        @if (Model.IsDone)
        {
            <option value="true" selected>Yes</option>
            <option value="false">No</option>
        }
        else
        {
            <option value="true">Yes</option>
            <option value="false" selected>No</option>
            
        }
    </select>
    Is It Recurring?
    <select name="isrecurring" class="form-control">
        @if (Model.IsRecurring) 
        { 
            <option value="true" selected>Yes</option>
            <option value="false">No</option>
        }
        else
        {
            <option value="true">Yes</option>
            <option value="false" selected>No</option>
        }
    </select>
    <input type="hidden" name="id" value="@Model.Id"/>
    <input type="submit" class="btn btn-success btn-block" value="Submit Changes" />
</form>